class Item < ActiveRecord::Base
  has_many :item_drops
  validates_uniqueness_of :wowlink
  
  class << self
    #Static methods
    def parseWowID(text)
      #wow IDs are of the format w:x:y:z, 
      #I've no idea what it means but we basically just need w.
            
      text =~ /(\d+):/
      $1.to_i    
    end     
  end
  
  
  
end
